package com.ontheroad.version.service;

import cn.modoumama.service.base.BaseService;
import com.ontheroad.api.request.VersionRequest;
import com.ontheroad.api.request.VersionRequest.checkNewVersion;
import com.ontheroad.api.response.Response;
import com.ontheroad.core.annotation.ValidateGroup;
import com.ontheroad.version.model.VersionModel;
import org.springframework.remoting.service.annotation.RemoteService;

/**
 * Created by kedong on 2017/8/23 0023.
 */
@RemoteService
public interface VersionService extends BaseService<VersionModel, Integer> {

    @ValidateGroup(groups = checkNewVersion.class)
    Response checkNewVersion(VersionRequest request);
}
